﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace JackyCode.Mock.Test
{
    [TestFixture]
    class TestMockObjectFactoryImpl
    {
        [Test]
        public void TestCreateObject()
        {
            IMockObjectFactory<IService> interfaceMockObjectFactory = new MockObjectFactoryImpl<IService>();
            Assert.IsTrue(interfaceMockObjectFactory.CreateObject() is IService);

            IMockObjectFactory<Service> classMockObjectFactory = new MockObjectFactoryImpl<Service>();
            Assert.IsTrue(classMockObjectFactory.CreateObject() is Service);
        }
    }
}
